<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let hero = prompt('请输入你的狗雄');
        let level = prompt('请输入狗雄的等级');
        // prompt 得到的数据都是string 类型
        console.log(typeof level);
        console.log('你的'+ hero + "现在" + level +'级了')
    </script>
</body>
</html>